home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / comm2 / kms20src.lha / KMSUM / kmsum.h < prev   
C/C++ Source or Header  |  1994-03-25  |  1KB  |  71 lines

  1. /*************************************************************/
  2. /* Includes and other common stuff for the MUI demo programs */
  3. /*************************************************************/
  4.  
  5. /* MUI */
  6. #include <libraries/mui.h>
  7.  
  8. /* UMS */
  9. #include <libraries/ums.h>
  10.  
  11. /* System */
  12. #include <dos/dos.h>
  13. #include <graphics/gfxmacros.h>
  14. #include <workbench/workbench.h>
  15. #include <exec/memory.h>
  16.  
  17. /* Prototypes */
  18. #include <clib/alib_protos.h>
  19. #include <clib/exec_protos.h>
  20. #include <clib/dos_protos.h>
  21. #include <clib/icon_protos.h>
  22. #include <clib/graphics_protos.h>
  23. #include <clib/intuition_protos.h>
  24. #include <clib/gadtools_protos.h>
  25. #include <clib/muimaster_protos.h>
  26. #include <clib/asl_protos.h>
  27. #include <clib/ums_protos.h>
  28.  
  29. /* ANSI C */
  30.  
  31. #include <stdlib.h>
  32. #include <string.h>
  33. #include <stdio.h>
  34. #include <time.h>
  35.  
  36. /* Compiler specific stuff */
  37.  
  38. #define REG(x) __ ## x
  39. #define ASM
  40. #define SAVEDS __geta4
  41.  
  42. int brkfunc(void)
  43.    {
  44.    return 0;
  45.    }
  46.  
  47. int wbmain(struct WBStartup *wb_startup)
  48.    {
  49.    extern int main(int argc, char *argv[]);
  50.    
  51.    return main(0, NULL);
  52.    }
  53.  
  54. static VOID init(VOID)
  55.    {
  56.    onbreak(brkfunc);
  57.    }
  58.  
  59. static VOID stccpy(STRPTR dest, STRPTR source, int len)
  60.    {
  61.    strncpy(dest, source, len);
  62.    dest[len-1] = '\0';
  63.    }
  64.  
  65. #ifndef MAKE_ID
  66.    #define MAKE_ID(a,b,c,d) ((ULONG) (a)<<24 | (ULONG) (b)<<16 | (ULONG) (c)<<8 | (ULONG) (d))
  67. #endif
  68.  
  69. LONG __stack = 4096;
  70.  
  71.